package com.sxpi.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxpi.course.pojo.ChapterLesson;

import java.util.List;
import java.util.Map;

/**
 * @Author: 董伟豪
 * @Date: 2022/10/15 16:35
 */
public interface ChapterLessonMapper extends BaseMapper<ChapterLesson> {

    /**
     * 根据课程id查询对应章节的信息（去除空字段）
     * @param courseId
     * @return
     */
    List<Map<String, Object>> findChapterLessons(Long courseId);
}
